#include "stdafx.h"
#include "guiMediatorMyGUI.h"
#include "guiKeeper.h"
#include "playstate.h"
#include "gamemanager.h"
#include "CityInfo.h"
using namespace sgGUI;

guiMediatorMyGUI::guiMediatorMyGUI()
{

}

guiMediatorMyGUI::~guiMediatorMyGUI()
{

}

void guiMediatorMyGUI::Update( int diff )
{

}

void guiMediatorMyGUI::ProcessMessage( sgMessage *msg )
{
    switch( msg->type )
    {
    case MSG_GUI_ARMY_SELECTED:
        {

        }
        break;

    case MSG_GUI_CITY_SELECTED:
        {
            CityInfo *c = (CityInfo*)guiKeeper.getLayout("CityInfo");
            c->SetCity( (sgCity*)msg->from );
            c->show(true);
        }
        break;
    }
}
